package itstudio.instructor.fragment;

import itstudio.instructor.widget.DampView;

import com.easemob.chatuidemo.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class MeFragment extends Fragment {

    private View rootView ;
    private ImageView img;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        if (rootView == null) {
            rootView = inflater.inflate(R.layout.fragment_me2, container,false);
            initView(rootView, inflater);
        }
        ViewGroup parent = (ViewGroup) rootView.getParent();
        if (parent != null) {
            parent.removeView(rootView);
        }
        return rootView;
    }
	private void initView(View rootView2, LayoutInflater inflater) {
		// TODO Auto-generated method stub
		img = (ImageView) rootView2.findViewById(R.id.img);
		DampView view = (DampView) rootView2.findViewById(R.id.dampview);
		view.setImageView(img);
	}

 

}
